//获取榜单
export const getList = () => {
    return fetch('http://106.12.79.128:666/toplist').then(res => res.json())
}
//获取榜单里面的歌曲
export const getListMusic = (id1 = '19723756') => {
    return fetch('http://106.12.79.128:666/playlist/detail?id=' + id1).then(res => res.json())
}

// 获取音乐路径
export const getMusicURLApi = (id = "1369798757") => {
    return fetch("http://106.12.79.128:666/song/url?id=" + id).then(res => res.json())
}

// 获取单曲音乐评论
export const getSingleCommentApi = (id) => {
    return fetch("http://106.12.79.128:666/comment/music?id=" + id).then(res =>res.json())
}
//根据id获取单曲
export const getsingleMusic = (id = '347230') =>{
    return fetch("http://106.12.79.128:666/song/detail?ids=" + id).then(res => res.json())
}
